<foreach name="list" item="item">
    <tr>
        <td>{$item.id}</td>
        <td><a href="{:cmf_url('meeting/index/show',['id'=>$item.id])}">{$item.name}</a></td>
        <td>{$item.person_status|status}</td>
        <td>{$item.unit_status|status}</td>
        <td>{$item.tg_status|status}</td>
        <td>
            <if condition="$user.user_type == 2">
                <if condition="$item.person_status == 1">
                    {$item.person_price}
                    <else/>
                    ---
                </if>
            </if>
            <if condition="$user.user_type == 3">
                <if condition="$item.unit_status == 1">
                    {$item.unit_price}
                    <else/>
                    ---
                </if>
            </if>
        </td>

        <td>{$item.register_end_time|date='Y-m-d',###}</td>
        <td>
            <if condition="$item.tg_status == 1">
                <button onclick="tougao({$item.id})" class="layui-btn layui-btn-small">投稿</button>
            </if>
            <if condition="$item.person_status == 1 && $user.user_type == 2">
                <button onclick="baoming({$item.id})"
                        class="layui-btn layui-btn-small layui-btn-danger">报名参会
                </button>
            </if>
            <if condition="$item.unit_status == 1 && $user.user_type == 3">
                <button onclick="baoming({$item.id})"
                        class="layui-btn layui-btn-small layui-btn-danger">报名参会
                </button>
            </if>
        </td>
    </tr>
</foreach>
